package com.square.service.common.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * @author : 王苏
 * @since : 2021/4/26 8:27
 */
public class AopUtil {

    /**
     * 获取请求路径
     *
     * @param requestPath
     * @return
     */
    public static String filterUrl(String requestPath) {
        String url = null;
        if (StringUtils.isNotBlank(requestPath)) {
            url = requestPath.replace("//", "/");
            if (url.contains("//")) {
                url = filterUrl(url);
            }
        }
        return url;
    }
}
